package com.pmcc.platform.shopping.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.pmcc.core.entity.BaseEntity;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Data
@Entity
@Table(name = "bp_shopping_apply")
@org.hibernate.annotations.Table(appliesTo = "bp_shopping_apply",comment="导购申请记录表")
public class ShoppingApply extends BaseEntity {

    @Column(columnDefinition = "varchar(255) COMMENT '商铺id'")
    private String shopId;

    @Column(columnDefinition = "varchar(255) COMMENT '小程序用户id'")
    private String miniUserId;

    @Column(columnDefinition = "varchar(100) COMMENT '业务员id'")
    private String salesmanId;//业务员id

    @Column(columnDefinition = "varchar(255) COMMENT '名字'")
    private String name;//名字


    @Column(columnDefinition = "varchar(100) COMMENT '手机号'")
    private String phone;//手机号

    @Column(columnDefinition = "varchar(100) COMMENT '审核'")
    private  String isApply;//0为同意   1为 还没同意

    @Column(columnDefinition = "varchar(100) COMMENT '是否为临时导购     0：不是   1：是'")
    private String isPerpetual;//是否为临时导购     0：不是   1：是

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "statrTime")
    private Date startTime;//开始时间

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "endTime")
    private Date endTime;//结束时间

}
